You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtx Class > TMtx Methods > MulElem Method > TMtx.MulElem Method ([In] TMtx)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtx.MulElem Method ([In] TMtx)

Matrix array multiplication.

Syntax
C#
Visual Basic
public TMtx MulElem([In] TMtx Mtx);

Multiplies elements in Mtx matrix with the elements in the calling matrix (array multiplication) and stores the results in calling matrix. The Rows, Cols and TMtxVec.ComplexComplexproperties of both matrices must match, otherwise an exception is raised.

var A,B,C: TMtx; begin CreateIt(A,B,C); try A.SetIt(2,2,False,[1,2, 2,4]); B.SetIt(2,2,False,[1,2, 2,4]); C.MulElem(A,B); // C becomes: // [1, 4, // 4,16] finally FreeIt(A,B,C); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!